package com.ssc.portal.common.utils;

import java.util.Properties;

public class AppConfig {
	public static final String CONFIGPATH = "com/ssc/portal/common/config/config.properties";
	public static final String defaultValue = "UTF-8";
	public static Properties app = new Properties();
	
	static{
		init();
	}
	
	public static void init(){
		try {
			app.load(AppConfig.class.getClassLoader().getResourceAsStream(CONFIGPATH));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String name){
		return app.getProperty(name);
	}
	
}
